cmake_minimum_required (VERSION 2.6)
project ("Ejercicio11")

set(SRC_DIR src/)
set(OUT_DIR bin/)
set(CMAKE_BUILD_TYPE Debug)

include_directories("${SRC_DIR}")
include_directories("${SRC_DIR}IPC")
include_directories("${SRC_DIR}common")

AUX_SOURCE_DIRECTORY ("${SRC_DIR}IPC" COMMON_SRC)
AUX_SOURCE_DIRECTORY ("${SRC_DIR}common" COMMON_SRC)

file(MAKE_DIRECTORY ${OUT_DIR})

add_executable(${OUT_DIR}launcher   ${SRC_DIR}ProcesoLauncher.cpp   ${COMMON_SRC} )
add_executable(${OUT_DIR}terminator ${SRC_DIR}ProcesoTerminator.cpp ${COMMON_SRC} )
add_executable(${OUT_DIR}hidrogeno  ${SRC_DIR}ProcesoHidrogeno.cpp  ${COMMON_SRC} )
add_executable(${OUT_DIR}oxigeno    ${SRC_DIR}ProcesoOxigeno.cpp    ${COMMON_SRC} )